/*
 * Copyright (c) 2008, Xiong Yingfei, the University of Tokyo
 * All rights reserved.
 */
package ac.jp.u_tokyo.SyncLib.language.factories;

import ac.jp.u_tokyo.SyncLib.SetMembers.MembersTester;
import ac.jp.u_tokyo.SyncLib.util.Helper;


public class NotEqualTester implements MembersTester
{
	Object _expected;
	
	public NotEqualTester(Object expected)
	{
		super();
		_expected = expected;
	}

	public int getCount()
	{
		return 1;
	}

	public boolean isMembers(Object[] v)
	{
		return v.length == 1 && !Helper.areEqual(_expected, v[0]);
	}

}
